package api

import (
	"admin100/app/service"
	"admin100/library/response"
	"admin100/library/utils"

	"github.com/gogf/gf/net/ghttp"
	"github.com/gogf/gf/util/gconv"
)

var Index = indexApi{}

type indexApi struct{}

// @summary 首页
// @tags    首页
// @produce json
// @router  /index [GET]
// @success 200 {object} response.JsonResponse "执行结果"
func (a *indexApi) Index(r *ghttp.Request) {
	data := service.Menu.List()
	utils.ResConvertStr()
	response.JsonSuc(r, gconv.MapStrStr(data))

}
